package src.week2.home;

import java.net.Authenticator;

public class TestAuthenticator {
    public static void main(String[] args){
       week02.home.Authenticator auth=AuthenticatorFactory.createAuthenticator();

        auth.save("auth",pass: "123456");

        if(auth.authenticate("auth",pass: "123456")){
            System.out.println("校验的用户名和密码与存入的一致");
        }
    }
}
